import 'package:flutter/material.dart';
import 'package:qgchat/common/global/global.dart';

/// 没有数据时的提示页
class NoData extends StatelessWidget {
  NoData(this.tipsMsg, {Key key}) : super(key: key);

  final String tipsMsg;

  @override
  Widget build(BuildContext context) {
    return Container(
      width: w100(context),
      color: col("f5f7fa"),
      padding: EdgeInsets.only(top: h100(context) * 0.18),
      child: Column(
        children: <Widget>[
          Image.asset(
            "assets/images/icon/youjian.png",
            width: px(350),
            height: px(375),
          ),
          Container(
            margin: EdgeInsets.only(top: px(37)),
            child: Text(
              tipsMsg,
              style: TextStyle(
                color: col("909399"),
                fontSize: px(42),
              ),
            ),
          )
        ],
      ),
    );
  }
}
